package com.java.zhuiyun.api.SysUser.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.java.zhuiyun.api.SysUser.controller.dto.UserDTO;
import com.java.zhuiyun.api.SysUser.entity.Password;
import com.java.zhuiyun.api.SysUser.entity.SysUser;
import com.java.zhuiyun.common.response.CommonResult;
import com.java.zhuiyun.util.pageUtil.PageRequest;
import com.java.zhuiyun.util.pageUtil.PageResult;
import org.springframework.web.multipart.MultipartFile;

/**
 * @InterfaceName SysUserService
 * @Description TODO
 * @Author xy
 * @Date 2023/8/14 19:55
 **/
public interface ISysUserService extends IService<SysUser> {

    /**
     * @Author xy
     * @Description 全查
     * @Date 2023/8/15 15:34
     * @Return  * @param null
     */
    PageResult userList(SysUser sysUser, PageRequest pageRequest);

    /**
    * @Author xy
    * @Description 添加
    * @Date 2023/8/15 20:08
    * @Return  * @param null
    */
    int SysUserAdd(SysUser sysUser, MultipartFile file);

    /**
     * @Author xy
     * @Description 修改
     * @Date 2023/8/15 16:22
     * @Return  * @param null
     */
    int SysUserUpdate(SysUser sysUser,MultipartFile file);

    /**
    * @Author xy
    * @Description 禁用状态
    * @Date 2023/9/2 10:55
    * @Return  * @param null
    */
    int updatescope(SysUser sysUser);

    /**
     * @Author xy
     * @Description 逻辑删除
     * @Date 2023/8/15 16:37
     * @Return  * @param null
     */
    int SysUserDelete(Integer id);

//    CommonResult login(SysUser sysUser);
    UserDTO login(UserDTO userDTO);
    /**
    * @Author 杨友朋
    * @Description TODO 修改个人信息
    * @Date 2023/8/22 14:37
    * @Return
    * @param
    */
    CommonResult saveInfo(SysUser sysUser);

    CommonResult savePassword(Password password);
}
